package cn.initcap.designpattern.pattern.behavioral.command;

/**
 * @author initcap
 * @date Created in 2018/10/31 PM10:32.
 */
public class OpenCourseVideoCommand implements Command {

    private CourseVideo courseVideo;

    public OpenCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.open();
    }

}
